print("请输入您需要排版的文字:")

sentence = input()

while(True):
    print("请选择您将要使用的功能(1.删除空格 2.英文标点替换为中文标点 3.英文字母大写 4.退出)")
    choice = input()
    if choice == '1':
        sentence = sentence.replace(' ','')
        print(sentence)
    elif choice == '2':
        sentence = sentence.replace(",", "，").replace("!", "！").replace(".", "。")
        print(sentence)
    elif choice == '3':
        print("请选择您将使用的功能(1.首字母大写,其余字母小写 2.全文单词首字母大写 3.全文单词大写 )")
        choice_letter = input()
        if choice_letter == '1':
            sentence = sentence.capitalize()
            print(sentence)
        elif choice_letter == '2':
            sentence = sentence.title() 
            print(sentence)
        else:
            sentence = sentence.upper()
            print(sentence)
    else:
        break
    print()
